package com.kksoft.readcm.objects;

import com.kksoft.readcm.activity.App;

import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import org.json.JSONException;
import org.json.JSONObject;

public final class f
{
  private final int a;
  private AtomicInteger b;
  private AtomicInteger c;
  private AtomicInteger d;
  private AtomicInteger e;
  private AtomicLong f;

  public f(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, long paramLong)
  {
    AtomicInteger localAtomicInteger1 = new AtomicInteger();
    this.b = localAtomicInteger1;
    AtomicInteger localAtomicInteger2 = new AtomicInteger();
    this.c = localAtomicInteger2;
    AtomicInteger localAtomicInteger3 = new AtomicInteger();
    this.d = localAtomicInteger3;
    AtomicInteger localAtomicInteger4 = new AtomicInteger();
    this.e = localAtomicInteger4;
    AtomicLong localAtomicLong = new AtomicLong();
    this.f = localAtomicLong;
    this.a = paramInt1;
    AtomicInteger localAtomicInteger5 = this.b;
    int j;
    int i;
    if (paramInt2 > 0)
    {
      j = paramInt2;
      localAtomicInteger5.set(j);
      this.c.set(paramInt3);
      this.d.set(paramInt4);
      if (paramInt5 <= 100)
    	//s break label157;
      i = 100;
    }
    while (true)
    {
    	//s this.e.set(i);
      this.f.set(paramLong);
      return;
    //s j = 0;
    //s break;
    //s label157: if (paramInt5 < 0)
    //s {
    //s i = 0;
    //s continue;
    //s }
    //s  i = paramInt5;
    }
  }

  public static JSONObject a(Map paramMap)
  {
    JSONObject localJSONObject1 = new JSONObject();
    Iterator localIterator = paramMap.entrySet().iterator();
    while (true)
    {
      if (!localIterator.hasNext())
        return localJSONObject1;
      try
      {
        f localf = (f)((Map.Entry)localIterator.next()).getValue();
        JSONObject localJSONObject2 = new JSONObject();
        String str1 = String.valueOf(localf.a);
        JSONObject localJSONObject3 = localJSONObject2.put("view", str1);
        String str2 = String.valueOf(localf.b);
        JSONObject localJSONObject4 = localJSONObject2.put("section", str2);
        String str3 = String.valueOf(localf.c);
        JSONObject localJSONObject5 = localJSONObject2.put("page", str3);
        String str4 = String.valueOf(localf.d);
        JSONObject localJSONObject6 = localJSONObject2.put("nodeIndex", str4);
        String str5 = String.valueOf(localf.e);
        JSONObject localJSONObject7 = localJSONObject2.put("percent", str5);
        String str6 = String.valueOf(localf.f);
        JSONObject localJSONObject8 = localJSONObject2.put("time_updated", str6);
        String str7 = String.valueOf(localf.a);
        JSONObject localJSONObject9 = localJSONObject1.put(str7, localJSONObject2);
      }
      catch (JSONException localJSONException)
      {
        App.b(localJSONException);
      }
    }
  }

  public final int a()
  {
    return this.a;
  }

  public final int b()
  {
    return this.b.get();
  }

  public final int c()
  {
    return this.c.get();
  }

  public final int d()
  {
    return this.d.get();
  }

  public final int e()
  {
    return this.e.get();
  }

  public final long f()
  {
    return this.f.get();
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.ideashower.readitlater.objects.f
 * JD-Core Version:    0.6.0
 */